/*
 * HttpGet.cpp
 *
 */

#include <sstream>
#include "HttpGet.h"
#include "HttpHost.h"

HttpGet::HttpGet(const std::string& uri): HttpRequest(uri) {}

HttpGet::~HttpGet() {}

bool HttpGet::hasBody() const {
	return false;
}

void HttpGet::setBody(HttpBody* body) {
	throw MessageException("GET cant have a body");
}

HttpBody& HttpGet::getBody() const {
	throw MessageException("GET cant have a body");
}

const std::string& HttpGet::getMethod() const {
	return GET;
}
